﻿using UnityEngine;
using System.Collections;

public class ButtonClick : MonoBehaviour 
{
    public Animator anim;
  
	void Start () 
    {
        AnimScript.animationFinish += AnimScript_animationFinish;
	}
  
    void AnimScript_animationFinish()
    {       
       Application.LoadLevel("Game");     
    }

    void OnMouseDown()
    {
        anim.SetTrigger("Close");
    }	
	
	void Update () 
    {
       
	}
}
